wxapp.tools.wxLoading = function() {
    var o = "";
    return {
        show: function(n) {
            o = n, wx.showLoading({
                title: n,
                mask: !1
            });
        },
        hide: function(n) {
            n ? "" != o && o == n && (wx.hideLoading(), o = "") : wx.hideLoading();
        }
    };
}(), wxapp.tools.wxShowModal = {
    show: function(o, n, t, i) {
        n || (n = {}), n.title || (n.title = "提示"), n.showCancel || (n.showCancel = !0), 
        wx.showModal({
            title: n.title,
            content: o,
            showCancel: n.content,
            success: function(o) {
                o.confirm ? t && t() : o.cancel && i && i();
            }
        });
    }
};